{include file="User@Public:header"/}
{include file="User@Public:nav"/}
{block name="style"}
	<link type="text/css" rel="stylesheet" href="/Addons/SyncLogin/Static/css/binding.css"/>
{/block}
<div class="container">
	<div class="row">
		<div class="col-md-2">
			{include file="User@Public:left_menu"/}
		</div>
		<div class="col-md-10 cf">
			<div class="panel panel-default cf">
				<div class="panel-heading">
					<h3 class="panel-title">
						第三方账号管理
					</h3>
				</div>
				<div class="panel-body">
					
					<div class="box">
						{volist name="config['type']" id="sync"}
						<div class='sync'>
							<div class="sync-left {$sync|strtolower}">
							</div>
							<div class="sync-center pull-left">
								<h4>
									{$sync|strtoupper}
								</h4>
								{php}
								$description = $config[$sync.'description'];
								$sync = strtoupper($sync);
								{/php}
								{$description}
							</div>
							<div class="sync-right">
								{if condition="$info[$sync] neq $sync "}
								<a href="{:U('home/addons/execute',array('_addons'=>'SyncLogin','_controller'=>'Member','_action'=>'dobind','uid'=>$uid,'type'=>$sync))}" class="btn btn-primary">
									立即绑定
								</a>
								{else/}
								<a href="{:U('home/addons/execute',array('_addons'=>'SyncLogin','_controller'=>'Member','_action'=>'cancelbind','uid'=>$uid,'type'=>$sync))}"  class="btn btn-success">
									取消绑定
								</a>
								{/if}
							</div>
						</div>
						{/volist}
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
{include file="User@Public:footer"/}